/**
 * Created by wangyg 
 * on 2017/6/16 17:44
 */
public class Demo2 {
	public static void main(String[] args) throws InterruptedException {
		A a=new A();
		a.start();
//		a.join();
		Thread.sleep(1000);
		System.out.println("线程执行完毕");
	}

	static class A extends Thread{
		public void run(){
			for (int i = 0; i <100 ; i++) {
				System.out.println(Thread.currentThread().getName()+":"+i);
			}
		}
	}
}
